home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / MorphOS / Epic4_mos / share / epic / help / 6_functions / getitem < prev    next >
Encoding:
Text File  |  2002-10-28  |  887 b   |  25 lines

  1. Synopsis:
  2.    $getitem(<array> <item#>)
  3.    $igetitem(<array> <index#>)
  4.  
  5. Technical:
  6.    These functions are used to fetch data held in the given array.  The
  7.    $getitem() function retrieves data based on its item number in the array
  8.    (counting from zero, the order in which the data was entered).  The
  9.    $igetitem() function retrieves it based on its index number (counting
  10.    from zero, in a sorted order).  These functions only affect arrays
  11.    created with $setitem().
  12.  
  13. Practical:
  14.    These functions are used to get an item in an array.  The applications
  15.    for these function should be obvious.  The $igetitem() function, in
  16.    particular, is useful for showing an array's contents in alphabetical
  17.    order.
  18.  
  19. Returns:
  20.    array item data, or empty string if array or item is not found
  21.  
  22. See Also:
  23.    Arrays(7); indextoitem(6); itemtoindex(6); setitem(6)
  24.  
  25.